//
//  ViewController.m
//  Item
//
//  Created by flannery on 2018/12/17.
//  Copyright © 2018年 flannery. All rights reserved.
//

#import "ViewController.h"
#import "MealBuilder.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    
    MealBuilder *mealBuilder = MealBuilder.new;
    
    Meal *vegMeal = [mealBuilder prepareNonVegMeal];
    NSLog(@"----Veg Meal----");
    [vegMeal showItems];
    NSLog(@"Total Cost: %f" , [vegMeal getCost]);
    
    Meal *nonVegMeal = [mealBuilder prepareNonVegMeal];
    NSLog(@"----Non-Veg Meal----");
    [nonVegMeal showItems];
    NSLog(@"Total Cost:%f", [nonVegMeal getCost]);
}


@end
